<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Starting tests...</title>
    <script type="text/javascript">
        function redirectToTestPage() {
            if(window.__TAURI__) {
                __TAURI__.window.appWindow.setFocus().catch(console.error).finally(()=>{
                    __TAURI__.cli.getMatches().then(matches=>{
                        const testSuiteToExec = matches.args["run-tests"].value;
                        if(testSuiteToExec){
                            location.href = `test/SpecRunner.html?spec=All&category=${testSuiteToExec}`;
                        } else {
                            location.href = `test/SpecRunner.html`;
                        }
                    }).catch(console.error);
                });
            } else {
                location.href = "test/SpecRunner.html";
            }
        }
    </script>
</head>
<body onload="redirectToTestPage()">
 Redirecting to test runner....
 Open this page only from `dist-test` folder.
</body>
</html>